Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
A__U21(tt, V1) → A__U22(a__isNat(V1))
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
MARK(U31(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(U22(X)) → A__U22(mark(X))
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(plus(X1, X2)) → MARK(X1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U12(tt, V2) → A__U13(a__isNat(V2))
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__PLUS(N, 0) → A__ISNAT(N)
MARK(U13(X)) → A__U13(mark(X))
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
A__U21(tt, V1) → A__U22(a__isNat(V1))
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
MARK(U31(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(U22(X)) → A__U22(mark(X))
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(plus(X1, X2)) → MARK(X1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U12(tt, V2) → A__U13(a__isNat(V2))
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__PLUS(N, 0) → A__ISNAT(N)
MARK(U13(X)) → A__U13(mark(X))
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 4 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
QDP
          ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
MARK(U31(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(plus(X1, X2)) → MARK(X1)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__PLUS(N, 0) → A__ISNAT(N)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__PLUS(N, 0) → A__ISNAT(N)
The remaining pairs can at least be oriented weakly.

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(plus(X1, X2)) → MARK(X1)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 1   
POL(A__AND(x1, x2)) = x2   
POL(A__ISNAT(x1)) = 0   
POL(A__ISNATKIND(x1)) = 0   
POL(A__PLUS(x1, x2)) = x1 + x2   
POL(A__U11(x1, x2, x3)) = 0   
POL(A__U12(x1, x2)) = 0   
POL(A__U21(x1, x2)) = 0   
POL(A__U31(x1, x2)) = x2   
POL(A__U41(x1, x2, x3)) = x2 + x3   
POL(MARK(x1)) = x1   
POL(U11(x1, x2, x3)) = x1   
POL(U12(x1, x2)) = x1   
POL(U13(x1)) = x1   
POL(U21(x1, x2)) = x1   
POL(U22(x1)) = x1   
POL(U31(x1, x2)) = x1 + x2   
POL(U41(x1, x2, x3)) = x1 + x2 + x3   
POL(a__U11(x1, x2, x3)) = x1   
POL(a__U12(x1, x2)) = x1   
POL(a__U13(x1)) = x1   
POL(a__U21(x1, x2)) = x1   
POL(a__U22(x1)) = x1   
POL(a__U31(x1, x2)) = x1 + x2   
POL(a__U41(x1, x2, x3)) = x1 + x2 + x3   
POL(a__and(x1, x2)) = x1 + x2   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = x1 + x2   
POL(and(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(mark(x1)) = x1   
POL(plus(x1, x2)) = x1 + x2   
POL(s(x1)) = x1   
POL(tt) = 0   

The following usable rules [17] were oriented:

mark(U22(X)) → a__U22(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__and(tt, X) → mark(X)
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__U31(tt, N) → mark(N)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U13(X)) → a__U13(mark(X))
mark(isNat(X)) → a__isNat(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U13(tt) → tt
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__isNatKind(0) → tt
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(0) → tt
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__U22(tt) → tt



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
QDP
              ↳ QDPOrderProof
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(plus(X1, X2)) → MARK(X1)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(plus(X1, X2)) → MARK(X2)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
The remaining pairs can at least be oriented weakly.

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 1   
POL(A__AND(x1, x2)) = max(x1, x2)   
POL(A__ISNAT(x1)) = 0   
POL(A__ISNATKIND(x1)) = 0   
POL(A__PLUS(x1, x2)) = x1 + x2   
POL(A__U11(x1, x2, x3)) = 0   
POL(A__U12(x1, x2)) = 0   
POL(A__U21(x1, x2)) = 0   
POL(A__U31(x1, x2)) = x2   
POL(A__U41(x1, x2, x3)) = x2 + x3   
POL(MARK(x1)) = x1   
POL(U11(x1, x2, x3)) = x1   
POL(U12(x1, x2)) = x1   
POL(U13(x1)) = x1   
POL(U21(x1, x2)) = x1   
POL(U22(x1)) = x1   
POL(U31(x1, x2)) = x1 + x2   
POL(U41(x1, x2, x3)) = 1 + x1 + x2 + x3   
POL(a__U11(x1, x2, x3)) = x1   
POL(a__U12(x1, x2)) = x1   
POL(a__U13(x1)) = x1   
POL(a__U21(x1, x2)) = x1   
POL(a__U22(x1)) = x1   
POL(a__U31(x1, x2)) = x1 + x2   
POL(a__U41(x1, x2, x3)) = 1 + x1 + x2 + x3   
POL(a__and(x1, x2)) = x1 + x2   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = 1 + x1 + x2   
POL(and(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(mark(x1)) = x1   
POL(plus(x1, x2)) = 1 + x1 + x2   
POL(s(x1)) = x1   
POL(tt) = 0   

The following usable rules [17] were oriented:

mark(U22(X)) → a__U22(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__and(tt, X) → mark(X)
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__U31(tt, N) → mark(N)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U13(X)) → a__U13(mark(X))
mark(isNat(X)) → a__isNat(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U13(tt) → tt
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__isNatKind(0) → tt
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(0) → tt
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__U22(tt) → tt



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
QDP
                  ↳ DependencyGraphProof
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
A__PLUS(N, s(M)) → A__ISNAT(M)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 2 SCCs with 5 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
QDP
                        ↳ QDPOrderProof
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
A__U12(tt, V2) → A__ISNAT(V2)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U11(tt, V1, V2) → A__ISNAT(V1)
MARK(U22(X)) → MARK(X)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(s(X)) → MARK(X)
MARK(and(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
MARK(U22(X)) → MARK(X)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
The remaining pairs can at least be oriented weakly.

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U13(X)) → MARK(X)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U11(tt, V1, V2) → A__ISNAT(V1)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__U21(tt, V1) → A__ISNAT(V1)
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(A__AND(x1, x2)) = x2   
POL(A__ISNAT(x1)) = 0   
POL(A__ISNATKIND(x1)) = 0   
POL(A__U11(x1, x2, x3)) = 0   
POL(A__U12(x1, x2)) = 0   
POL(A__U21(x1, x2)) = 0   
POL(A__U31(x1, x2)) = x2   
POL(MARK(x1)) = x1   
POL(U11(x1, x2, x3)) = 1 + x1   
POL(U12(x1, x2)) = x1   
POL(U13(x1)) = x1   
POL(U21(x1, x2)) = x1 + x2   
POL(U22(x1)) = 1 + x1   
POL(U31(x1, x2)) = x1 + x2   
POL(U41(x1, x2, x3)) = 0   
POL(a__U11(x1, x2, x3)) = 0   
POL(a__U12(x1, x2)) = 0   
POL(a__U13(x1)) = 0   
POL(a__U21(x1, x2)) = 0   
POL(a__U22(x1)) = 0   
POL(a__U31(x1, x2)) = 0   
POL(a__U41(x1, x2, x3)) = 0   
POL(a__and(x1, x2)) = 0   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = 0   
POL(and(x1, x2)) = 1 + x2 + max(x1, x2)   
POL(isNat(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(mark(x1)) = 0   
POL(plus(x1, x2)) = 0   
POL(s(x1)) = 1 + x1   
POL(tt) = 0   

The following usable rules [17] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
QDP
                            ↳ Instantiation
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(U12(X1, X2)) → MARK(X1)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__U21(tt, V1) → A__ISNAT(V1)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By instantiating [15] the rule A__AND(tt, X) → MARK(X) we obtained the following new rules:

A__AND(tt, isNatKind(y_2)) → MARK(isNatKind(y_2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ Instantiation
QDP
                                ↳ DependencyGraphProof
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__U31(tt, N) → MARK(N)
A__U12(tt, V2) → A__ISNAT(V2)
MARK(U12(X1, X2)) → MARK(X1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
MARK(U31(X1, X2)) → MARK(X1)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U13(X)) → MARK(X)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
A__AND(tt, isNatKind(y_2)) → MARK(isNatKind(y_2))
MARK(isNat(X)) → A__ISNAT(X)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 3 SCCs with 6 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ Instantiation
                              ↳ QDP
                                ↳ DependencyGraphProof
                                  ↳ AND
QDP
                                      ↳ QDPOrderProof
                                    ↳ QDP
                                    ↳ QDP
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__AND(tt, isNatKind(y_2)) → MARK(isNatKind(y_2))
MARK(isNatKind(X)) → A__ISNATKIND(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
The remaining pairs can at least be oriented weakly.

A__AND(tt, isNatKind(y_2)) → MARK(isNatKind(y_2))
MARK(isNatKind(X)) → A__ISNATKIND(X)
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(A__AND(x1, x2)) = x2   
POL(A__ISNATKIND(x1)) = x1   
POL(MARK(x1)) = x1   
POL(U11(x1, x2, x3)) = 0   
POL(U12(x1, x2)) = 0   
POL(U13(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U41(x1, x2, x3)) = 0   
POL(a__U11(x1, x2, x3)) = 0   
POL(a__U12(x1, x2)) = 0   
POL(a__U13(x1)) = 0   
POL(a__U21(x1, x2)) = 0   
POL(a__U22(x1)) = 0   
POL(a__U31(x1, x2)) = 0   
POL(a__U41(x1, x2, x3)) = 0   
POL(a__and(x1, x2)) = 0   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = 0   
POL(and(x1, x2)) = 0   
POL(isNat(x1)) = x1   
POL(isNatKind(x1)) = x1   
POL(mark(x1)) = 0   
POL(plus(x1, x2)) = 1 + x1 + x2   
POL(s(x1)) = 1 + x1   
POL(tt) = 0   

The following usable rules [17] were oriented: none



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ Instantiation
                              ↳ QDP
                                ↳ DependencyGraphProof
                                  ↳ AND
                                    ↳ QDP
                                      ↳ QDPOrderProof
QDP
                                          ↳ DependencyGraphProof
                                    ↳ QDP
                                    ↳ QDP
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__AND(tt, isNatKind(y_2)) → MARK(isNatKind(y_2))
MARK(isNatKind(X)) → A__ISNATKIND(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 0 SCCs with 2 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ Instantiation
                              ↳ QDP
                                ↳ DependencyGraphProof
                                  ↳ AND
                                    ↳ QDP
QDP
                                      ↳ QDPSizeChangeProof
                                    ↳ QDP
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                        ↳ QDPOrderProof
                          ↳ QDP
                            ↳ Instantiation
                              ↳ QDP
                                ↳ DependencyGraphProof
                                  ↳ AND
                                    ↳ QDP
                                    ↳ QDP
QDP
                                      ↳ QDPSizeChangeProof
                      ↳ QDP
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(U31(X1, X2)) → MARK(X1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
QDP
                        ↳ QDPOrderProof
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
The remaining pairs can at least be oriented weakly.

A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(A__PLUS(x1, x2)) = x2   
POL(A__U41(x1, x2, x3)) = 1 + x2   
POL(U11(x1, x2, x3)) = 0   
POL(U12(x1, x2)) = 0   
POL(U13(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = x1   
POL(U31(x1, x2)) = x2   
POL(U41(x1, x2, x3)) = 1 + x2 + x3   
POL(a__U11(x1, x2, x3)) = 0   
POL(a__U12(x1, x2)) = 0   
POL(a__U13(x1)) = 0   
POL(a__U21(x1, x2)) = 0   
POL(a__U22(x1)) = x1   
POL(a__U31(x1, x2)) = x2   
POL(a__U41(x1, x2, x3)) = 1 + x2 + x3   
POL(a__and(x1, x2)) = x2   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = x1 + x2   
POL(and(x1, x2)) = x2   
POL(isNat(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(mark(x1)) = x1   
POL(plus(x1, x2)) = x1 + x2   
POL(s(x1)) = 1 + x1   
POL(tt) = 0   

The following usable rules [17] were oriented:

mark(U22(X)) → a__U22(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__and(tt, X) → mark(X)
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__U31(tt, N) → mark(N)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U13(X)) → a__U13(mark(X))
mark(isNat(X)) → a__isNat(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U13(tt) → tt
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__isNatKind(0) → tt
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(0) → tt
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__U22(tt) → tt



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
                ↳ QDP
                  ↳ DependencyGraphProof
                    ↳ AND
                      ↳ QDP
                      ↳ QDP
                        ↳ QDPOrderProof
QDP
                            ↳ DependencyGraphProof
              ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 0 SCCs with 1 less node.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


MARK(plus(X1, X2)) → MARK(X2)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
The remaining pairs can at least be oriented weakly.

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__ISNAT(M)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)
Used ordering: Polynomial interpretation [25]:

POL(0) = 1   
POL(A__AND(x1, x2)) = x2   
POL(A__ISNAT(x1)) = 0   
POL(A__ISNATKIND(x1)) = 0   
POL(A__PLUS(x1, x2)) = x1 + x2   
POL(A__U11(x1, x2, x3)) = 0   
POL(A__U12(x1, x2)) = 0   
POL(A__U21(x1, x2)) = 0   
POL(A__U31(x1, x2)) = x2   
POL(A__U41(x1, x2, x3)) = x2 + x3   
POL(MARK(x1)) = x1   
POL(U11(x1, x2, x3)) = x1   
POL(U12(x1, x2)) = x1   
POL(U13(x1)) = x1   
POL(U21(x1, x2)) = x1   
POL(U22(x1)) = x1   
POL(U31(x1, x2)) = x1 + x2   
POL(U41(x1, x2, x3)) = 1 + x1 + x2 + x3   
POL(a__U11(x1, x2, x3)) = x1   
POL(a__U12(x1, x2)) = x1   
POL(a__U13(x1)) = x1   
POL(a__U21(x1, x2)) = x1   
POL(a__U22(x1)) = x1   
POL(a__U31(x1, x2)) = x1 + x2   
POL(a__U41(x1, x2, x3)) = 1 + x1 + x2 + x3   
POL(a__and(x1, x2)) = x1 + x2   
POL(a__isNat(x1)) = 0   
POL(a__isNatKind(x1)) = 0   
POL(a__plus(x1, x2)) = 1 + x1 + x2   
POL(and(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(mark(x1)) = x1   
POL(plus(x1, x2)) = 1 + x1 + x2   
POL(s(x1)) = x1   
POL(tt) = 0   

The following usable rules [17] were oriented:

mark(U22(X)) → a__U22(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__and(tt, X) → mark(X)
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__U31(tt, N) → mark(N)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U13(X)) → a__U13(mark(X))
mark(isNat(X)) → a__isNat(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U13(tt) → tt
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__isNatKind(0) → tt
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(0) → tt
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__U22(tt) → tt



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ QDPOrderProof
              ↳ QDPOrderProof
QDP

Q DP problem:
The TRS P consists of the following rules:

A__U31(tt, N) → MARK(N)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
MARK(s(X)) → MARK(X)
MARK(U31(X1, X2)) → MARK(X1)
A__AND(tt, X) → MARK(X)
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(U13(X)) → MARK(X)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
A__PLUS(N, s(M)) → A__ISNAT(M)
MARK(isNatKind(X)) → A__ISNATKIND(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
MARK(U12(X1, X2)) → MARK(X1)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U41(tt, M, N) → MARK(N)
MARK(U22(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(isNat(X)) → A__ISNAT(X)
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__U21(tt, V1) → A__ISNAT(V1)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.